﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace DataAccess.Language
{
    public class LanguageDAL
    {
         private SQLDataAccess db;
         public LanguageDAL()
        {
            db = new SQLDataAccess();
        }
         public DataTable getLangByCode(string code)
         {
             return db.exeSelect("select * from Language where LanguageCode='"+code+"'");
         }
         public DataTable getActiveLang()
         {
             return db.exeSelect("select * from Language where Enable=1 order by ID desc");
         }
    }
}
